package cn.lixu.downgrade;

import cn.lixu.domain.Users;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ProjectName: springcloud-alibaba-parent-homework
 * @Package: cn.lixu.downgrade
 * @ClassName: OrdersFallBack
 * @Author: LIXU
 * @Description: 降级类
 * @Date: 2022/08/25 0025 0:53:58
 * @Version: 1.0
 **/
public class OrdersFallBack {
    public static Users orderFallback(@PathVariable("id") Long id, Throwable e) {/**
     * @Method orderFallback
     * @Author 小二黑
     * @Version 1.0
     * @Description 熔断降级方法
     * @param id
     * @param e
     * @Return cn.lixu.domain.Users
     * @Exception
     * @Date 2022/08/25 0025 0:54:36
     */
        e.printStackTrace();
        return new Users(-1L, "你点个锤子", "你是不是听不懂话");
    }
}
